package cn.xxstudy.visitshop.ui.activity.visit

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingComponent
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import cn.xxstudy.visitshop.R
import cn.xxstudy.visitshop.base.activity.BaseActivity
import cn.xxstudy.visitshop.databinding.ActivityVisitDetailsBinding
import cn.xxstudy.visitshop.ui.activity.main.fragment.visit.model.VisitData
import cn.xxstudy.visitshop.util.VISIT_KEY

/**
 * @author ：DELL on 2021/3/25 .
 * @packages ：cn.xxstudy.visitshop.ui.activity.visit .
 * TODO:巡店详情
 */
class VisitDetailActivity : BaseActivity<ActivityVisitDetailsBinding>() {

    override val layoutId = R.layout.activity_visit_details
    override val title = "详情查看"

    override fun loadData(savedInstanceState: Bundle?) {

        (binding as ActivityVisitDetailsBinding).visitData = intent.getParcelableExtra(VISIT_KEY)
    }
}